//
//  HRHomeViewController.swift
//  新浪微博
//
//  Created by 王之皆 on 16/12/25.
//  Copyright © 2016年 北京海狸先生网络科技有限公司. All rights reserved.
//

import UIKit

class HRHomeViewController: HRBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

    }
    
    func showFriends() {
      let vc = HRDemoViewController()
      navigationController?.pushViewController(vc, animated: true)
        
    }
}

extension HRHomeViewController{

    //重写父类的方法
    override func setupUI() {
         super.setupUI()
        //设置导航栏按钮
        navItem.leftBarButtonItem = UIBarButtonItem(title: "好友", fontSize: 16, target: self, action: #selector(showFriends))
    }


}




























